package com.wis.service.impl;

import com.wis.entity.AdminEntity;
import com.wis.mapper.AdminMapper;
import com.wis.service.AdminService;
import com.wis.util.CommonResult;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class AdminServiceImpl implements AdminService {
    @Resource
    private AdminMapper adminMapper;

    @Override
    public CommonResult selectAdmin(AdminEntity adminEntity) {
        AdminEntity  admin = adminMapper.selectAdmin(adminEntity);

        if(admin!=null){
            /**
             * 安全验证先不做
             * **/
            return CommonResult.build(200,"管理员账号密码正确",1,null);
        }

        return CommonResult.build(500,"管理员账号密码错误",0,null);
    }
}
